home *** CD-ROM | disk | FTP | other *** search
- Path: rover.ucs.ualberta.ca!news
- From: jbukczyn@gpu.srv.ualberta.ca (Jacob Bukczynski)
- Newsgroups: comp.lang.c
- Subject: Recursive function -> how do you exit one?
- Date: Mon, 29 Jan 1996 00:40:08 GMT
- Organization: University of Alberta, Edmonton, Canada
- Message-ID: <4eh1g8$aba@pulp.ucs.ualberta.ca>
- NNTP-Posting-Host: async4-9.remote.ualberta.ca
- X-Newsreader: Forte Free Agent 1.0.82
-
- I'm using a recursive function to search for files. I need
- it to quit when a user presses Esc.
-
- Using
-
- return;
-
- doesn't seem to work, the funtion runs again. ( I tested
- this by putting a printf statement in front of the return -
- it got printed over and over again. )
-
- Is there a special way of exiting a recursive function?
-
- Please reply at jbukczyn@gpu.srv.ualberta.ca
-
-
-